import Vue from 'vue'
import App from './App'
import Vuex from 'vuex'
import VueRouer from 'vue-router'
import funnel from 'components/funnel/funnel'
import heat from 'components/heat/heat'
import line from 'components/line/line'
import table from 'components/table/table'
import {DatePicker} from 'element-ui'

import dashboard from 'components/zhongdian/dashboard/dashboard'
import index from 'components/zhongdian/index/index'
import indexs from 'components/zhongdian/indexs/indexs'
import indexzhen from 'components/zhongdian/indexzhen/indexzhen'
import indexzhens from 'components/zhongdian/indexzhens/indexzhens'
import indexcun from 'components/zhongdian/indexcun/indexcun'
import indexcuns from 'components/zhongdian/indexcuns/indexcuns'


import anzhibang from 'components/anzhi/anzhibang/anzhibang'
import anzhibang1 from 'components/anzhi/anzhibang1/anzhibang1'
import anzhibang1s from 'components/anzhi/anzhibang1s/anzhibang1s'
import anzhibang2 from 'components/anzhi/anzhibang2/anzhibang2'
import anzhibang2s from 'components/anzhi/anzhibang2s/anzhibang2s'
import anzhibang3 from 'components/anzhi/anzhibang3/anzhibang3'
import anzhibang3s from 'components/anzhi/anzhibang3s/anzhibang3s'

import jindubang from 'components/jindu/jindubang/jindubang'
import jindubang1 from 'components/jindu/jindubang1/jindubang1'
import jindubang1s from 'components/jindu/jindubang1s/jindubang1s'
import jindubang2 from 'components/jindu/jindubang2/jindubang2'
import jindubang2s from 'components/jindu/jindubang2s/jindubang2s'
import jindubang3 from 'components/jindu/jindubang3/jindubang3'
import jindubang3s from 'components/jindu/jindubang3s/jindubang3s'

import shejiaobang from 'components/shejiao/shejiaobang/shejiaobang'
import shejiaobang1 from 'components/shejiao/shejiaobang1/shejiaobang1'
import shejiaobang1s from 'components/shejiao/shejiaobang1s/shejiaobang1s'
import shejiaobang2 from 'components/shejiao/shejiaobang2/shejiaobang2'
import shejiaobang2s from 'components/shejiao/shejiaobang2s/shejiaobang2s'
import shejiaobang3 from 'components/shejiao/shejiaobang3/shejiaobang3'
import shejiaobang3s from 'components/shejiao/shejiaobang3s/shejiaobang3s'

import weiwenbang from 'components/weiwen/weiwenbang/weiwenbang'
import weiwenbang1 from 'components/weiwen/weiwenbang1/weiwenbang1'
import weiwenbang1s from 'components/weiwen/weiwenbang1s/weiwenbang1s'
import weiwenbang2 from 'components/weiwen/weiwenbang2/weiwenbang2'
import weiwenbang2s from 'components/weiwen/weiwenbang2s/weiwenbang2s'
import weiwenbang3 from 'components/weiwen/weiwenbang3/weiwenbang3'
import weiwenbang3s from 'components/weiwen/weiwenbang3s/weiwenbang3s'

import weijibang from 'components/weiji/weijibang/weijibang'
import weijibang1 from 'components/weiji/weijibang1/weijibang1'
import weijibang1s from 'components/weiji/weijibang1s/weijibang1s'
import weijibang2 from 'components/weiji/weijibang2/weijibang2'
import weijibang2s from 'components/weiji/weijibang2s/weijibang2s'
import weijibang3 from 'components/weiji/weijibang3/weijibang3'
import weijibang3s from 'components/weiji/weijibang3s/weijibang3s'

import xinfangbang from 'components/xinfang/xinfangbang/xinfangbang'
import xinfangbang1 from 'components/xinfang/xinfangbang1/xinfangbang1'
import xinfangbang1s from 'components/xinfang/xinfangbang1s/xinfangbang1s'
import xinfangbang2 from 'components/xinfang/xinfangbang2/xinfangbang2'
import xinfangbang2s from 'components/xinfang/xinfangbang2s/xinfangbang2s'
import xinfangbang3 from 'components/xinfang/xinfangbang3/xinfangbang3'
import xinfangbang3s from 'components/xinfang/xinfangbang3s/xinfangbang3s'

import xiejiaobang from 'components/xiejiao/xiejiaobang/xiejiaobang'
import xiejiaobang1 from 'components/xiejiao/xiejiaobang1/xiejiaobang1'
import xiejiaobang1s from 'components/xiejiao/xiejiaobang1s/xiejiaobang1s'
import xiejiaobang2 from 'components/xiejiao/xiejiaobang2/xiejiaobang2'
import xiejiaobang2s from 'components/xiejiao/xiejiaobang2s/xiejiaobang2s'
import xiejiaobang3 from 'components/xiejiao/xiejiaobang3/xiejiaobang3'
import xiejiaobang3s from 'components/xiejiao/xiejiaobang3s/xiejiaobang3s'

import zaitaobang from 'components/zaitao/zaitaobang/zaitaobang'
import zaitaobang1 from 'components/zaitao/zaitaobang1/zaitaobang1'
import zaitaobang1s from 'components/zaitao/zaitaobang1s/zaitaobang1s'
import zaitaobang2 from 'components/zaitao/zaitaobang2/zaitaobang2'
import zaitaobang2s from 'components/zaitao/zaitaobang2s/zaitaobang2s'
import zaitaobang3 from 'components/zaitao/zaitaobang3/zaitaobang3'
import zaitaobang3s from 'components/zaitao/zaitaobang3s/zaitaobang3s'

import xingzhenbang from 'components/xingzhen/xingzhenbang/xingzhenbang'
import xingzhenbang1 from 'components/xingzhen/xingzhenbang1/xingzhenbang1'
import xingzhenbang1s from 'components/xingzhen/xingzhenbang1s/xingzhenbang1s'
import xingzhenbang2 from 'components/xingzhen/xingzhenbang2/xingzhenbang2'
import xingzhenbang2s from 'components/xingzhen/xingzhenbang2s/xingzhenbang2s'
import xingzhenbang3 from 'components/xingzhen/xingzhenbang3/xingzhenbang3'
import xingzhenbang3s from 'components/xingzhen/xingzhenbang3s/xingzhenbang3s'

import danweibang from 'components/danwei/danweibang/danweibang'

import $ from 'jquery'
import global_ from './../config/global'
Vue.prototype.GLOBAL = global_;  

Vue.component(DatePicker.name, DatePicker)

Vue.use(VueRouer)
Vue.use(Vuex)

const store = new Vuex.Store({
  state: {
    count: 0,
    color: ['#325B69', '#698570', '#AE5548', '#6D9EA8', '#9CC2B0', '#C98769']
  }
});
const router = new VueRouer({
  routes: [{
    path: '/anzhibang',
    component: anzhibang
  }, {
    path: '/anzhibang1',
    component: anzhibang1
  }, {
    path: '/anzhibang1s',
    component: anzhibang1s
  }, {
    path: '/anzhibang2',
    component: anzhibang2
  }, {
    path: '/anzhibang2s',
    component: anzhibang2s
  }, {
    path: '/anzhibang3',
    component: anzhibang3
  }, {
    path: '/anzhibang3s',
    component: anzhibang3s
  }, {
    path: '/jindubang',
    component: jindubang
  }, {
    path: '/jindubang1',
    component: jindubang1
  }, {
    path: '/jindubang1s',
    component: jindubang1s
  }, {
    path: '/jindubang2',
    component: jindubang2
  }, {
    path: '/jindubang2s',
    component: jindubang2s
  }, {
    path: '/jindubang3',
    component: jindubang3
  }, {
    path: '/jindubang3s',
    component: jindubang3s
  }, {
    path: '/shejiaobang',
    component: shejiaobang
  }, {
    path: '/shejiaobang1',
    component: shejiaobang1
  }, {
    path: '/shejiaobang1s',
    component: shejiaobang1s
  }, {
    path: '/shejiaobang2',
    component: shejiaobang2
  }, {
    path: '/shejiaobang2s',
    component: shejiaobang2s
  }, {
    path: '/shejiaobang3',
    component: shejiaobang3
  }, {
    path: '/shejiaobang3s',
    component: shejiaobang3s
  }, {
    path: '/weiwenbang',
    component: weiwenbang
  }, {
    path: '/weiwenbang1',
    component: weiwenbang1
  }, {
    path: '/weiwenbang1s',
    component: weiwenbang1s
  }, {
    path: '/weiwenbang2',
    component: weiwenbang2
  }, {
    path: '/weiwenbang2s',
    component: weiwenbang2s
  }, {
    path: '/weiwenbang3',
    component: weiwenbang3
  }, {
    path: '/weiwenbang3s',
    component: weiwenbang3s
  }, {
    path: '/weijibang',
    component: weijibang
  }, {
    path: '/weijibang1',
    component: weijibang1
  }, {
    path: '/weijibang1s',
    component: weijibang1s
  }, {
    path: '/weijibang2',
    component: weijibang2
  }, {
    path: '/weijibang2s',
    component: weijibang2s
  }, {
    path: '/weijibang3',
    component: weijibang3
  }, {
    path: '/weijibang3s',
    component: weijibang3s
  }, {
    path: '/xinfangbang',
    component: xinfangbang
  }, {
    path: '/xinfangbang1',
    component: xinfangbang1
  }, {
    path: '/xinfangbang1s',
    component: xinfangbang1s
  }, {
    path: '/xinfangbang2',
    component: xinfangbang2
  }, {
    path: '/xinfangbang2s',
    component: xinfangbang2s
  }, {
    path: '/xinfangbang3',
    component: xinfangbang3
  }, {
    path: '/xinfangbang3s',
    component: xinfangbang3s
  }, {
    path: '/xiejiaobang',
    component: xiejiaobang
  }, {
    path: '/xiejiaobang1',
    component: xiejiaobang1
  }, {
    path: '/xiejiaobang1s',
    component: xiejiaobang1s
  }, {
    path: '/xiejiaobang2',
    component: xiejiaobang2
  }, {
    path: '/xiejiaobang2s',
    component: xiejiaobang2s
  }, {
    path: '/xiejiaobang3',
    component: xiejiaobang3
  }, {
    path: '/xiejiaobang3s',
    component: xiejiaobang3s
  }, {
    path: '/zaitaobang',
    component: zaitaobang
  }, {
    path: '/zaitaobang1',
    component: zaitaobang1
  }, {
    path: '/zaitaobang1s',
    component: zaitaobang1s
  }, {
    path: '/zaitaobang2',
    component: zaitaobang2
  }, {
    path: '/zaitaobang2s',
    component: zaitaobang2s
  }, {
    path: '/zaitaobang3',
    component: zaitaobang3
  }, {
    path: '/zaitaobang3s',
    component: zaitaobang3s
  }, {
    path: '/xingzhenbang',
    component: xingzhenbang
  }, {
    path: '/xingzhenbang1',
    component: xingzhenbang1
  }, {
    path: '/xingzhenbang1s',
    component: xingzhenbang1s
  }, {
    path: '/xingzhenbang2',
    component: xingzhenbang2
  }, {
    path: '/xingzhenbang2s',
    component: xingzhenbang2s
  }, {
    path: '/xingzhenbang3',
    component: xingzhenbang3
  }, {
    path: '/xingzhenbang3s',
    component: xingzhenbang3s
  }, {
    path: '/danweibang',
    component: danweibang
  }, {
    path: '/funnel',
    component: funnel
  }, {
    path: '/heat',
    component: heat
  }, {
    path: '/dashboard',
    component: dashboard
  }, {
    path: '/index',
    component: index
  }, {
    path: '/indexs',
    component: indexs
  }, {
    path: '/indexcun',
    component: indexcun
  }, {
    path: '/indexcuns',
    component: indexcuns
  }, {
    path: '/table',
    component: table
  }, {
    path: '/line',
    component: line
  }, {
    path: '/indexzhen',
    component: indexzhen
  }, {
    path: '/indexzhens',
    component: indexzhens
  }],
  linkActiveClass: 'active'
})
new Vue({
  router,
  store,
  template: '<App>',
  components: {
    App
  },
  data: {
    eventHub: new Vue(),
    charts: []
  }
}).$mount('#app')

router.push('dashboard')
